import { useRouter } from "vue-router";


export const useNavigate = () => {
    const router = useRouter()
    const navigateTo = (url: string) => router.push(url)

    const back = () => router.back()

    return {
        navigateTo,
        back
    }
}